﻿using System;

namespace N2.ComponentModel
{
	using Details;
	
	public class DetailCollectionEditor : ContentCollectionEditor
	{
		#region Constructors

		public DetailCollectionEditor(Type type) : base(type) { }

		#endregion Constructors

		protected override Type CreateCollectionItemType()
		{
			return typeof(ContentDetail);
		}

		protected override Type[] CreateNewItemTypes()
		{
			return new[] {
				typeof(StringDetail),
				typeof(IntegerDetail),
				typeof(DoubleDetail),
				typeof(BooleanDetail),
				typeof(ObjectDetail),
				typeof(LinkDetail),
			};
		}
	}
}
